﻿<Page x:Class="SmartSpace.WpfShell.Modules.Dynamic.ListTemplateView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:src="clr-namespace:SmartSpace.WpfShell.Modules.Dynamic.Util"
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
	Title="ListTemplateView">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <ToolBar Grid.Row="0">
            <Button>
                <TextBlock Text="新建" FontSize="14" HorizontalAlignment="Center"/>
            </Button>
            <Button Content="刷新"/>
        </ToolBar>
        <Expander Grid.Row="1">
            <Expander.Header>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="过滤条件" VerticalAlignment="Center"/>
                    <ComboBox Name="_ctlListJobType">
                        <ComboBox.Items>
                            <ComboBoxItem IsSelected="True" Content="待办理"/>
                        </ComboBox.Items>
                    </ComboBox>
                    <Button Name="_ctlBtnSearch" Content="过滤" Click="_ctlBtnSearch_Click"/>
                </StackPanel>
            </Expander.Header>
            <WrapPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="时间:"/>
                    <DatePicker/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="发送人:"/>
                    <TextBox Width="200"/>
                </StackPanel>
            </WrapPanel>
        </Expander>
        <DataGrid Grid.Row="2" Name="_ctlDataGrid" AutoGenerateColumns="False" CanUserAddRows="False" Hyperlink.Click="DataGridHyperlinkColumn_Click">
            <DataGrid.Columns>
                <DataGridHyperlinkColumn Header="名称" Binding="{Binding Path=[__Name]}" />
            </DataGrid.Columns>
        </DataGrid>
        <ToolBar Grid.Row="3">
            <Button Content="首页"/>
            <Button Content="上一页"/>
            <Button Content="下一页"/>
            <Button Content="末页"/>
        </ToolBar>
    </Grid>
</Page>
